﻿@using MvcMall.AdminPortal.Controllers.GoodsBrand.ViewModels;
@model SaveGoodsBrandModel
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm("SaveGoodsBrand", "GoodsBrand"))
{
    <div id="saveGoodsBrand">
        <fieldset>
            @Html.HiddenFor(m => m.BrandId)
            <div class="editor-label">
                @Html.LabelFor(m => m.GoodsCatId)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(m => m.GoodsCatId, ViewData["CatList"] as IEnumerable<SelectListItem>)
                @Html.ValidationMessageFor(m => m.GoodsCatId)
            </div>
            <div class="editor-label">
                @Html.LabelFor(m => m.BrandName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.BrandName)
                @Html.ValidationMessageFor(m => m.BrandName)
            </div>
            <div class="editor-label">
                @Html.LabelFor(m => m.SortOrder)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.SortOrder)
                @Html.ValidationMessageFor(m => m.SortOrder)
            </div>
            <p>
                <input type="submit" value="保存品牌" /></p>
        </fieldset>
    </div>
}